﻿namespace PayPal.ButtonManager
{
    using System;

    public class ButtonOption
    {
        /// <summary>
        /// The menu name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Option selection details fields.
        /// </summary>
        public ButtonOptionItem[] OptionItems { get; set; } 

        public static ButtonOption Create(string name, ButtonOptionItem[] optionItems)
        {
            return new ButtonOption { Name = name, OptionItems = optionItems };
        }                                             
    }
}
